class City
  include DataMapper::Resource
  storage_names[:default] = "City"
  
  property :id,          Serial
  property :title,       String,        :required => true, :length => 500
  property :description, Text,          :lazy => false
  timestamps :at

  has n, :profiles
  has n, :classrooms
  has n, :classroom_registrations, 'ClassroomRegistration',
    :parent_key => [:id],
    :child_key => [:expected_city_id]
end
